package com.atguigu.springcloud;

import com.atguigu.myrule.MySelRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author : leimingchao
 * @date Date : 2021年11月01日 23:48
 */
@SpringBootApplication
@EnableEurekaClient
//在启动该微服务的时候就能去加载我们自定义Ribbon配置类，从而使配置生效
// @RibbonClient(name = "MICROSERVICECLOUD-DEPT",configuration = MySelRule.class)
//MySelRule不能与@ComponentScan注解所在的包及其子包下
@RibbonClient(name = "MICROSERVICECLOUD-DEPT",configuration = MySelRule.class)
public class DeptConsumer80_App {

    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer80_App.class, args);
    }
}
